/**
 * 
 */
package com.yishuki.bluewhale;

/**
 * User type
 * @author yhzhu
 *
 */
public enum UserType {
	ADMIN(Constant.PERMISSION_ADMIN_ID, Constant.PERMISSION_ADMIN_MASK, "ADMIN"),
	SELLER(Constant.PERMISSION_SELLER_ID, Constant.PERMISSION_SELLER_MASK, "SELLER"),
	BUYER(Constant.PERMISSION_BUYER_ID, Constant.PERMISSION_BUYER_MASK, "BUYER");
	
	private long id;
	private int mask;
	private String name;

	private UserType(long id, int mask, String name){
		this.id = id;
		this.mask = mask;
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public int getMask() {
		return mask;
	}

	public String getName() {
		return name;
	}
}
